package net.gdface.jna;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.util.List;

public class FileUtil {
    public static List<String> loadData(String path) throws Exception{
        List<String> dataLines = FileUtils.readLines(new File(path));
        return  dataLines;
    }


    public static void saveData(String path,List<OmenData> omenDataList) throws  Exception{
        FileUtils.writeLines(new File(path),omenDataList);
    }
}
